<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
<jsp:text><![CDATA[
<script type="text/javascript">
    function logout() {
        document.getElementById("profile").todo.value = "logout";
        document.getElementById("profile").submit();
    }

    function showLoyaltyPoint() {
        document.getElementById("profile").todo.value = "showLoyaltyPoint";
        document.getElementById("profile").submit();
    }

    function showPurchaseRecord() {
        document.getElementById("profile").todo.value = "showPurchaseRecord";
        document.getElementById("profile").submit();
    }

    function prepareRefundRequest() {
        document.getElementById("profile").todo.value = "prepareRefundRequest";
        document.getElementById("profile").submit();
    }

    function showRefundStatus() {
        document.getElementById("profile").todo.value = "showRefundStatus";
        document.getElementById("profile").submit();
    }

</script>

<form name="profile" id="profile" method="post" action=" ]]></jsp:text><jsp:expression>request.getContextPath()</jsp:expression><jsp:text><![CDATA[/index.do">
    <input type="hidden" name="todo" id="todo" value="" />

    <div>
        <a href="javascript:showLoyaltyPoint();">Show my loyalty point</a> <br />
        <a href="javascript:showPurchaseRecord();">Show my purchase record</a> <br />
        <a href="javascript:prepareRefundRequest();">Request a refund</a> <br />
        <a href="javascript:showRefundStatus();">Show my refund status</a>
    </div>

    <input type='button' onclick='logout();' value='logout' />
</form>]]></jsp:text>

</jsp:root>
